//************************************************
// File Name: ElementAppDelegate.m
// Team: Team Epsilon
// Date Created: 2009/06/18
// Purpose: The Application Delegate of the program. 
// Change History: 
//   * Mark, Date: 2009/06/18 Create Menu
//   * James, Date: 2009/07/01 Adding Comments
//************************************************

#import "ElementAppDelegate.h"

// The implimentation of the Application Delegate
@implementation ElementAppDelegate

// Create the window and a tab bar.
@synthesize window;
@synthesize tabBarController;


// How the tab bar works
- (void)applicationDidFinishLaunching:(UIApplication *)application 
{   
	// pause to show loading
	sleep(2);
    // Add the tab bar controller's current view as a subview of the window
    [window addSubview:tabBarController.view];
	[window makeKeyAndVisible];

}


/*
// Optional UITabBarControllerDelegate method
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
 
}
*/

/*
// Optional UITabBarControllerDelegate method
- (void)tabBarController:(UITabBarController *)tabBarController didEndCustomizingViewControllers:(NSArray *)viewControllers changed:(BOOL)changed {
}
*/

// Deal with the allocatation/deallocatation of the memory.
- (void)dealloc 
{
    [tabBarController release];
    [window release];
    [super dealloc];
}

@end

